/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.barbon.sudoku.model.entidade;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Barbon
 */
public class Teste {
    /*public static void main(String[] args) {
        Coluna c = new Coluna();
        Posicao p = new Posicao();
        List<Posicao> lp = new ArrayList<Posicao>();
        
        lp.add(p);
        
        p.setIdentificacao((byte) 2);
        
        c.setIdentificacao((byte) 1);
        c.setPosicao(lp);
        
        try {
            FileOutputStream fo = new FileOutputStream(new File("teste"));
            ObjectOutputStream os = new ObjectOutputStream(fo);
            
            os.writeObject(c);
            
            System.out.println(c);
            
            os.close();
            
            c = null;
            
            System.out.println(c);
            
            ObjectInputStream is = new ObjectInputStream(new FileInputStream("teste"));
            
            c = (Coluna) is.readObject();
            
            System.out.println(c);
            
        } catch (FileNotFoundException ex) {
            Logger.getLogger(Teste.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(Teste.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Teste.class.getName()).log(Level.SEVERE, null, ex);
        }
        
    }*/
}
